package com.snts.synchronization.core;

import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;

public class SyncRequest extends SyncPackage {

	private String sessionId;

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	@Override
	public String toString() {
		return "SyncRequest [sessionId=" + sessionId + ", changes=" + toString(changes) + "]";
	}

	private String toString(List<Change> changes) {
		StringBuffer buf = new StringBuffer();
		buf.append("[");
		for(Change change : changes){
			buf.append(change.toString() + ",\n");
		}
		buf.append("]");
		return buf.toString();
	}

	
	
}
